package com.taldh.algorithm.string;

import org.junit.Assert;
import org.junit.Test;

public class ReverseLeftWords {

    public String reverseLeftWords(String s, int n) {
        return s.substring(n).concat(s.substring(0,n));
    }

    @Test
    public void test() {
        Assert.assertEquals("cdefgab", reverseLeftWords("abcdefg",2));
    }
}